package GradeManager.StudentGradeSystem.common;

import GradeManager.StudentGradeSystem.pojo.Account;
import GradeManager.StudentGradeSystem.pojo.LoginDTO;
import io.jsonwebtoken.Claims;

public class BaseContent {
    private static ThreadLocal<Claims> currentThread=new ThreadLocal<>();

    public static Claims getLoginClaims() {
        return currentThread.get();
    }

    public static void setLoginClaims(Claims claims) {
        currentThread.set(claims);
    }
    public static void removeLoginClaims(){
        currentThread.remove();
    }
}
